package com.old.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Post {
    private Integer id;//帖子id
    private String imageUrl;//帖子图片
    private String name;//作者名字
    private Integer authorId;//作者id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String avatar;//头像
    private String title;//帖子标题
    private String likeMan;//点赞者id
    private String content;//帖子文案

    private boolean isgood; //用户是否点赞

    private int isShow; //帖子状态:0审核中，1已审核

}
